//
//  HYToolBar.h
//  HaiYue
//
//  Created by skyline on 2018/1/2.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef  NS_ENUM(NSInteger, HYToolBarEvent)
{
    HYToolBarEventLeftBtnAction = 1,
    HYToolBarEventMiddleBtnAction,
    HYToolBarEventRightBtnAction
};

@protocol HYToolBarDelegate<NSObject>
- (void)eventWithClicked:(HYToolBarEvent)event;
@end

@interface HYToolBar : UIView
@property (nonatomic, strong) HYButton *middleBtn;
@property (nonatomic, strong) HYButton *leftBtn;
@property (nonatomic, strong) HYButton *rightBtn;
@property (nonatomic, strong) UIColor *titleColor;
@property (nonatomic, weak) id<HYToolBarDelegate>delegate;

- (instancetype)initWithMiddleTitle:(NSString *)middleTitle
                    leftTitle:(NSString *)leftTitle leftImageName:(NSString *)leftImageName
                   rightTitle:(NSString *)rightTitle rightImageName:(NSString *)rightImageName;
@end
